package com.share.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author caifan
 * @date 2020/1/1
 */
@FeignClient(name = "account-service")
public interface AccountFeignClient {

    @GetMapping("/rest/reduce")
    Boolean reduce(@RequestParam("userId") String userId, @RequestParam("money") BigDecimal money);
}
